#!/bin/bash

if [ -e hd80M.img ];then
	echo "rm hd80M.img"	
	rm hd80M.img
fi

echo "create hd80M.img hard disk image file"
echo yes | bximage -q -hd=80 -func=create -imgmode=flat hd80M.img > /dev/null	
echo "start create partition table now"

fdisk hd80M.img << EOF
n
p
1

+40M
n
e
4


n
l

+20M
n
l


t
1
0x66
t
5
0x66
t
6
0x66
p
w
q
